{extend name="public/base"}

{block name="style"}
<link rel="stylesheet" href="__STATIC__/admin/css/news.css" media="all" />
{/block}


{block name="main"}
<body class="childrenBody">
<blockquote class="layui-elem-quote">
    <form class="layui-form" action="?">
        <div class="layui-inline">
            <a class="layui-btn layui-btn-normal Add_btn" data-url="{:url('save_bank')}">添加银行</a>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <select name="status" class="newsLook" lay-filter="status">
                    <option value="" {eq name="param.status|default=''" value="0"} selected {/eq}>银行启用状态</option>
                    <option value="0">全部</option>
                    <option value="1" {eq name="param.status|default=''" value="1"} selected {/eq}>正常</option>
                    <option value="2" {eq name="param.status|default=''" value="2"} selected {/eq}>禁用</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <select name="delete" class="newsLook" lay-filter="delete">
                    <option value="" {eq name="param.delete|default=''" value="0"} selected {/eq}>银行软删除状态</option>
                    <option value="0" >全部</option>
                    <option value="1" {eq name="param.delete|default=''" value="1"} selected {/eq}>正常</option>
                    <option value="2" {eq name="param.delete|default=''" value="2"} selected {/eq}>已删除</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" value="{$param.name|default=''}" name="name" placeholder="请输入银行名字" class="layui-input search_input">
            </div>
            <button type="submit" class="layui-btn search_btn">查询</button>
        </div>
    </form>
</blockquote>
<div class="layui-form news_list">
    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col>
            <col width="9%">
            <col width="9%">
            <col width="35%">
        </colgroup>
        <thead>
        <tr>
            <th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
            <th style="text-align:left;">银行名</th>
            <th>启用状态</th>
            <th>软删除状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="news_content">
            {volist name="data" id="vo"}
            <tr>
                <td><input type="checkbox" name="" lay-skin="primary" lay-filter="choose"></td>
                <td style="text-align:left;">{$vo.name}</td>
                <td class="save_field">
                    {eq name="vo.status" value="1"}
                        <a href="javascript:;" data-url="{:url('save_status', ['id' => $vo['id'], 'value' => '2'])}" data-title="禁用该银行？" class="layui-btn layui-btn-mini">启用</a>
                    {else /}
                        <a href="javascript:;" data-url="{:url('save_status', ['id' => $vo['id'], 'value' => '1'])}" data-title="启用该银行？" class="layui-btn layui-btn-mini layui-btn-danger">禁用</a>
                    {/eq}
                </td>
                <td class="save_field">
                    {eq name="vo.delete" value="1"}
                    <a href="javascript:;" data-url="{:url('save_delete', ['id' => $vo['id'], 'value' => '2'])}" data-title="删除该银行？" class="layui-btn layui-btn-mini">正常</a>
                    {else /}
                    <a href="javascript:;" data-url="{:url('save_delete', ['id' => $vo['id'], 'value' => '1'])}" data-title="恢复该银行？" class="layui-btn layui-btn-mini layui-btn-danger">已删除</a>
                    {/eq}
                </td>
                <td> </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
<div id="page"></div>
{/block}

{block name="javascript"}
{/block}